package cn.appsys.dao;

import cn.appsys.pojo.AppInfo;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface AppInfoDao {

	int selectAppInfoCount(@Param("a") AppInfo appInfo);

	List<AppInfo> selectAppInfo(@Param("a") AppInfo appInfo, 
			@Param("startRow") Integer startRow,
			@Param("pageSize") Integer pageSize);

	AppInfo getAppInfoById(Long id);
	
	//是否存在APKName
	int apkexist(String APKName);
	
	int addAppInfo(AppInfo appInfo);
	
	int updateVersionId(@Param("id")Long id,@Param("versionId")Long versionId);
	
	int updateStatus(@Param("id")Long id,@Param("status")Integer status);
	
	int deleteAppInfo(Long id);
}
